package com.gxa.park.core.pojo.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author mincheung
 * @since 2022-07-18
 */
@TableName("tb_inspector_feedwork")
@ApiModel(value = "InspectorFeedwork对象", description = "")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class InspectorFeedwork implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("自增长id主键")
    @TableId(value = "feed_id", type = IdType.AUTO)
    private Integer feedId;

    @ApiModelProperty("返回单号")
    @TableField("feed_number")
    private String feedNumber;

    @ApiModelProperty("巡检员名称")
    @TableField("feed_inspector_name")
    private String feedInspectorName;

    @ApiModelProperty("所属泊位")
    @TableField("feed_parking_number")
    private String feedParkingNumber;

    @ApiModelProperty("反馈时间")
    @TableField("feed_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    private LocalDateTime feedTime;

    @ApiModelProperty("1、未处理2、已处理")
    @TableField("feed_handle_result")
    private Integer feedHandleResult;

    @ApiModelProperty("处理时间")
    @TableField("feed_handle_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    private LocalDateTime feedHandleTime;

    @ApiModelProperty("手机号")
    @TableField("feed_phone")
    private String feedPhone;

}
